import Vue from 'vue'
import {formatDateTime} from '../utils/commonUtils'

Vue.filter('formatMoney', (value) => {
  return parseFloat(value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');
});

Vue.filter('fmtCommonDate', (value, format) => {
  return formatDateTime(value, format);
});
